<?php 
defined('RUN_KATANA') or die('Restricted access'); 
$detect = new DeviceDetect;
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');
if($_REQUEST['device'] != '')
{ $deviceType = $_REQUEST['device']; }
?>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->
<head>
<title><?php echo $katana->getMetaTitle(); ?></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="designer" content="Medon" />
<meta name="generator" content="Katana 1.<?php echo $katana->getVersion(); ?>" />
<meta name="description" content="<?php echo $katana->getMetaData(); ?>">
<meta name="keywords" content="<?php echo $katana->getMetaKey(); ?>">
<meta name="viewport" content="width=device-width">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes'>
<meta property="og:site_name" content="<?php echo $katana->getTitle(); ?>" />
<?php echo $katana->getHeaderItems(); ?>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<?php require(TEMPLATES_CORE_PATH.'katana.css.php'); ?>
<?php require(JS_INCLUDE_PATH.'/JsHeader.php'); ?>
<?php if(file_exists(TEMPLATES_PATH.'sites/'.$katana->getId().'/layout/html_head_include.php')): ?>
<?php require(TEMPLATES_PATH.'sites/'.$katana->getId().'/layout/html_head_include.php'); ?>
<?php endif; ?>
</head>
<body class="katana-frontend <?php echo $deviceType ?>">